AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones específicas de la Web / Funciones de páginas
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
PageWriteHeaderHTTP (Function)
In french: PageEcritEntêteHTTP
Adds an additional HTTP header that will be returned to the browser:
  • during the next function for page display (PageDisplay, PageRefresh, ...),
  • during the automatic return of the current page at the end of the current action.
Example
PageWriteHeaderHTTP("X-Frame-Options", "deny")
Syntax
PageWriteHeaderHTTP(<Header> , <Value>)
<Header>: Character string
Name of the header to write.
<Value>: Character string
Value (or content) of the header to write.
Remarks
  • The WEBDEV Application Server sets the value of some HTTP headers returned by the server (e.g. "Content-Length"). In this case, the value written by PageWriteHeaderHTTP will be ignored.
    The list of headers is as follows:
    • Content-xxx (content-length, content-type, content-disposition, etc.)
    • Location
    • Allow (specific cases)
    • Set-Cookie
    • Access-Control-Expose-Headers
  • A second call to PageWriteHeaderHTTP with the same header name will overwrite the previous value.
Component: wd290page.dll
Versión mínima requerida
  • Versión 21
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local